//
//  Job.m
//  植物管理
//
//  Created by liujianlong on 2022/11/23.
//

#import "Job.h"

@implementation Job
+ (NSArray *)bg_unionPrimaryKeys
{
    return @[@"plant",@"account",@"stamp"];
}
- (NSInteger)stamp{
    if (!_stamp) {
        _stamp = [[NSDate currentTimeStamp:@"yyyy/MM/dd HH:mm:ss"] integerValue];
    }
    return _stamp;
}
- (NSString *)year{
    if (!_year) {
        _year = [NSDate transToDate:@"yyyy" :self.stamp];
    }
    return _year;
}
-(NSString *)month{
    if (!_month) {
        _month = [NSDate transToDate:@"MM" :self.stamp];
    }
    return _month;
}
-(NSString *)day{
    if (!_day) {
        _day = [NSDate transToDate:@"dd" :self.stamp];
    }
    return _day;
}
-(NSMutableArray *)imgs{
    if (!_imgs) {
        _imgs = [NSMutableArray array];
    }
    return _imgs;
}
- (NSString *)plant{
    if (!_plant) {
        _plant = @"";
    }
    return _plant;
}
-(NSString *)num{
    if (!_num) {
        _num = @"";
    }
    return _num;
}
-(NSString *)times{
    if (!_times) {
        _times = @"";
    }
    return _times;
}
-(NSString *)job{
    if (!_job) {
        _job = @"";
    }
    return _job;
}
-(NSString *)plantDetail{
    if (!_plantDetail) {
        _plantDetail = @"";
    }
    return _plantDetail;
}
-(NSString *)remark{
    if (!_remark) {
        _remark = @"";
    }
    return _remark;
}

@end
